<h2>Why is this an issue?</h2>
<p>Ternary operator should not be used to select between two boolean values, or instead of a logical <code>OR</code> operation. Ternary expressions
are often difficult to read, so if a simpler syntax exists, it should be used instead of a ternary expression. This happens when</p>
<ul>
  <li> the expression returns two boolean values </li>
</ul>
<pre>
let isGood = value &gt; 0 ? true : false; // Non-compliant, replace with value &gt; 0
let isBad = value &gt; 0 ? false : true; // Non-compliant, replace with !(value &gt; 0)
</pre>
<ul>
  <li> the same value is used for both the conditional test and the consequent </li>
</ul>
<pre>
let a = x ? x : y;  // Non-compliant, replace with x || y
</pre>
<h2>Resources</h2>
<h3>Documentation</h3>
<ul>
  <li> <a href="https://eslint.org">eslint</a> - Rule <a href="https://eslint.org/docs/latest/rules/no-unneeded-ternary">no-unneeded-ternary</a> </li>
  <li> MDN web docs - <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_operator">Ternary operator</a>
  </li>
  <li> MDN web docs - <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_NOT">Logical NOT (!)</a> </li>
  <li> MDN web docs - <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_OR">Logical OR (||)</a> </li>
</ul>
